import {Notification} from 'element-ui';

var notify = {
  showWarning: function (content) {
    Notification.warning({
      title: '提示',
      message: content,
      duration: 1000,
      position: 'bottom-right'
    })
  },
  showSuccess: function (content) {
    Notification.success({
      title: '成功',
      message: content,
      duration: 1000,
      position: 'bottom-right'
    })
  },
  showError: function (content) {
    Notification.error({
      title: '错误',
      message: content,
      duration: 1000,
      position: 'bottom-right'
    })
  }
}

export default notify;
